package cn.itheima_03;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

public class Test_02 {
	public static void main(String[] args) {
		Map<String,String> map=new HashMap<String,String>();
		final Map<String, String> m = map;
		m.put("AA", "aa");
		m.put("BB", "bb");
		m.put("CC", "cc");
		Set<Entry<String, String>> en = map.entrySet();
		for (Entry<String, String> entry : en) {
			String key=entry.getKey();
			String value=entry.getValue();
			System.out.println(key+" "+value);
		}
	}

}
